package com.jh.complicate.rpc.v2.server;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 * @projectName newforward
 * @title SpringConfig.java
 * @package com.jh.complicate.rpc.v2.server
 * @description Spring注解化配置
 * @date 2019/6/12 13:45
 */
@Configuration
@ComponentScan(basePackages = "com.jh.complicate.rpc.v2")
public class SpringConfig {

    @Bean(name = "rpcService")
    public RPCService rpcService() {
        return new RPCService(8080);
    }

}
